<?php
namespace service;

class User
{
    public function get(array $params)
    {
        return json_encode([
            'uid'  => $params['uid'],
            'name' => 'tom'
        ]);
    }
}